cmake_minimum_required(VERSION 2.8)
set (PROJECT Assignment1)
project(${PROJECT})
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DOPENGL33 -std=c++11")
SET(ASSIMP_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/assimp-3.1.1/include")
SET(ASSIMP_LIB_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/assimp-3.1.1/lib")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L ${ASSIMP_LIB_DIR}")
SET(ASSIMP_LIBRARIES "assimp")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
add_definitions(-DOPENGL33)
include_directories(/opt/local/include)
include_directories(${ASSIMP_INCLUDE_DIR})
link_directories(${ASSIMP_LIB_DIR})
file (GLOB_RECURSE SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/Source/*.cpp")
LINK_DIRECTORIES(/opt/local/lib)
add_executable(${PROJECT} ${SOURCES})
target_link_libraries(${PROJECT} glfw)
target_link_libraries(${PROJECT} glew)
target_link_libraries(${PROJECT} ${OPENGL_LIBRARIES})
target_link_libraries(${PROJECT} ${ASSIMP_LIBRARIES})
